﻿using LPLS.Commons.DBModule;
using MiniExcelLibs.Attributes;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LPLS.DBEntities.ConfigModels.AlarmModels
{
    /// <summary>
    /// 报警变量代码表
    /// </summary>
   [DatabaseKey(DatabaseEnum.SqliteConfig)]
    [SugarTable("AlarmVarableCodeConfig")]
    public  class AlarmVarableCodeConfig
    {

        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public int Id { get; set; }
        [ExcelColumnName("索引")]

        public string Index { get; set; }
        [ExcelColumnName("报警代码")]
       
        public string AlarmCode { get; set; }
  
        [ExcelColumnName("报警")]
        [SugarColumn(IsNullable =true)]
        public string  AlarmMessage { get; set; }


        [ExcelColumnName("等级")]
        public string Leve { get; set; }

        [ExcelColumnName("启用")]

        public string IsActive { get; set; }

        [ExcelColumnName("解决方案")]
        [SugarColumn(IsNullable = true)]
        public string SoulMessage { get; set; }

        /// <summary>
        /// 变量ID
        /// </summary>
        public int  AlarmVarableID { get; set; }
        [SugarColumn(IsIgnore =true)]
        public string VarName { get; set; }

    }
}
